<template>
	<view>
		<view class="tiaojian">
			<view :class="id==item.id?'active':''" v-for="item in xuanze" :key="item.id" @click="fresh(item.id)">
				{{item.item}}
			</view>
		</view>
		<view class="content">
			<view class="huaxiang-box" v-show="id==1">
					<view class="huaxiang-box-top">
						<view>
							<view class="color huaxiang-box-top-top">
								<label class="uni-font24 number">2</label>次
							</view>
							<view class="huaxiang-box-top-bot">
								本周查看
							</view>
						</view>
						<view>
							<view class="color huaxiang-box-top-top">
								<label class="uni-font24 number">2</label> <label class="iconfont label">&#xe60b;</label>
							</view>
							<view class="huaxiang-box-top-bot">
								较上周增加
							</view>
						</view>
						<view>
							<view class="huaxiang-box-top-top">
								累计分享
							</view>
							<view class="huaxiang-box-top-bot">
								18
							</view>
						</view>
						<view>
							<view class="huaxiang-box-top-top">
								累计查看
							</view>
							<view class="huaxiang-box-top-bot">
								8
							</view>
						</view>
					</view>
					<view class="huaxiang-box-bot">
						<view class="huaxiang-box-bot-item" @click="toLcsFenxiangxiangqing">
							<view class="item-top">
								如何选择固定收益类理财产品？
							</view>
							<view class="item-bot">
								
								<view>查看 120</view>
								<view>评论 100</view>
								<view>转发 50</view>
							</view>
						</view>
					</view>
			</view>
			<view class="" v-show="id==2">
				2
			</view>
			<view class="fangke-box" v-show="id==3">
				
				<view class="fangke-box-item">
					<image src="http://ai.ylcaifu.com/appimg/images/5.0-%E6%88%91%E7%9A%84-%E7%90%86%E8%B4%A2%E5%B8%88/5.3.6.1.2-%E8%AE%BF%E5%AE%A2/android/drawable-xhdpi/touxiang.png" mode="" class="fangke-imgae"></image>
					<view class="fangke-right">
						<view class="fangke-right-top">
							<view class="fangke-name">
								理财师 李明
							</view>
							<view class="fangke-time">
								2018-11-15 17:08
							</view>
						</view>
						<view class="fangke-right-bot">
							
							浏览了我的<label class="fangwen">2018年宏观经济展望与大类</label>
						
						</view>
					</view>
				</view>
				<view class="fangke-box-item">
					<image src="http://ai.ylcaifu.com/appimg/images/5.0-%E6%88%91%E7%9A%84-%E7%90%86%E8%B4%A2%E5%B8%88/5.3.6.1.2-%E8%AE%BF%E5%AE%A2/android/drawable-xhdpi/touxiang.png" mode="" class="fangke-imgae"></image>
					<view class="fangke-right">
						<view class="fangke-right-top">
							<view class="fangke-name">
								理财师 李明
							</view>
							<view class="fangke-time">
								2018-11-15 17:08
							</view>
						</view>
						<view class="fangke-right-bot">
							
							浏览了我的<label class="fangwen">2018年宏观经济展望与大类</label>
						
						</view>
					</view>
				</view>
				<view class="fangke-box-item">
					<image src="http://ai.ylcaifu.com/appimg/images/5.0-%E6%88%91%E7%9A%84-%E7%90%86%E8%B4%A2%E5%B8%88/5.3.6.1.2-%E8%AE%BF%E5%AE%A2/android/drawable-xhdpi/touxiang.png" mode="" class="fangke-imgae"></image>
					<view class="fangke-right">
						<view class="fangke-right-top">
							<view class="fangke-name">
								理财师 李明
							</view>
							<view class="fangke-time">
								2018-11-15 17:08
							</view>
						</view>
						<view class="fangke-right-bot">
							
							浏览了我的<label class="fangwen">2018年宏观经济展望与大类</label>
						
						</view>
					</view>
				</view>
				
			</view>
			<view class="" v-show="id==4">
				<view class="contentMid">
					<view class="contentBot">
						<view class="mark">
							<view class="avator-left">
								<image src="http://ai.ylcaifu.com/appimg/images/5.0-%E6%88%91%E7%9A%84-%E7%90%86%E8%B4%A2%E5%B8%88/5.3-%E7%90%86%E8%B4%A2%E5%B8%88%E4%B8%AA%E4%BA%BA%E4%B8%BB%E9%A1%B5/android/drawable-xhdpi/touxiang.png" />
							</view>
							<view class="mark-right">
								<view class="mark-top">
									<view class="mark-top-left">
										<view class="position">理财师</view>
										<view class="name">李明</view>
									</view>
								</view>
								<view class="fangke-right-bot">
									
									浏览了我的<label class="fangwen">2018年宏观经济展望与大类</label>
								
								</view>
								<view class="mark-bot twoLines">
									秀实东区寄秀实东区寄秀实东区寄秀实东区寄秀实东区寄秀实东区实东区寄秀实东区寄秀实东区寄秀实东区寄秀实东区寄
								</view>
								
								<view class="mark-liuyan">
									<view class="liuyan-time">
										11:20
									</view>
									<image class="liuyan" src="http://ai.ylcaifu.com/appimg/images/5.0-%E6%88%91%E7%9A%84-%E7%90%86%E8%B4%A2%E5%B8%88/5.3-%E7%90%86%E8%B4%A2%E5%B8%88%E4%B8%AA%E4%BA%BA%E4%B8%BB%E9%A1%B5/android/drawable-xhdpi/huifu.png" mode=""></image>
								</view>
								<view class="mark-liuyan-bot">
									<view class="">
										<label class="iconfont icon">&#xe634;</label>80浏览
									</view>
									<view class="">
										摆上设计：非常好
									</view>
								</view>
							</view>
						</view>
						<view class="mark">
							<view class="avator-left">
								<image src="http://ai.ylcaifu.com/appimg/images/5.0-%E6%88%91%E7%9A%84-%E7%90%86%E8%B4%A2%E5%B8%88/5.3-%E7%90%86%E8%B4%A2%E5%B8%88%E4%B8%AA%E4%BA%BA%E4%B8%BB%E9%A1%B5/android/drawable-xhdpi/touxiang.png" />
							</view>
							<view class="mark-right">
								<view class="mark-top">
									<view class="mark-top-left">
										<view class="position">理财师</view>
										<view class="name">李明</view>
									</view>
								</view>
								<view class="fangke-right-bot">
									
									浏览了我的<label class="fangwen">2018年宏观经济展望与大类</label>
								
								</view>
								<view class="mark-bot twoLines">
									秀实东区寄秀实东区寄秀实东区寄秀实东区寄秀实东区寄秀实东区实东区寄秀实东区寄秀实东区寄秀实东区寄秀实东区寄
								</view>
								
								<view class="mark-liuyan">
									<view class="liuyan-time">
										11:20
									</view>
									<image class="liuyan" src="http://ai.ylcaifu.com/appimg/images/5.0-%E6%88%91%E7%9A%84-%E7%90%86%E8%B4%A2%E5%B8%88/5.3-%E7%90%86%E8%B4%A2%E5%B8%88%E4%B8%AA%E4%BA%BA%E4%B8%BB%E9%A1%B5/android/drawable-xhdpi/huifu.png" mode=""></image>
								</view>
								<view class="mark-liuyan-bot">
									<view class="">
										<label class="iconfont icon">&#xe634;</label>80浏览
									</view>
									<view class="">
										摆上设计：非常好
									</view>
								</view>
							</view>
						</view>
				
					</view>
				</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: 1,
				xuanze: [{
					item: "分享",
					id: 1
				}, {
					item: "转发",
					id: 2
				}, {
					item: "访客",
					id: 3
				}, {
					item: "留言",
					id: 4
				}]
			};
		},methods:{
			fresh(id) {
				this.id = id
			},
			toLcsFenxiangxiangqing(){
				uni.navigateTo({
					url: './lcs-fenxiangxiangqing/lcs-fenxiangxiangqing',
					success: res => {},
					fail: () => {},
					complete: () => {}
				});
			}
		}
	}
</script>

<style>
	.tiaojian {
		display: flex;
		flex-direction: row;
		background: #FFFFFF;
		height: 40px;
		align-items: center;
		text-align: center;
		justify-content: space-around;
	}
	
	.tiaojian view {
		line-height: 37px;
		color: rgba(153, 153, 153, 1);
	
	}
	
	.tiaojian .active {
		border-bottom: 3px solid #c49c5a;
		color: rgba(196, 156, 90, 1);
	}
	.content{
		background: rgb(255,255,255);
		margin-top: 10px;
	}
	.huaxiang-box{
		
		padding: 30upx;
		
	}
	.huaxiang-box-top{
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-around;
		padding: 24upx 0;
		border: 1px solid rgba(255,255,255,1);
		border-radius:10upx;
		margin-bottom:30upx ;
	}
	.color{
		color: #C49C5A;
	}
	.uni-font24{
		font-size: 24px;
		margin-right: 10upx;
	}
	.huaxiang-box-top-top{
		line-height: 34px;
	}
	.huaxiang-box-top-bot{
		color: #999;
		
		font-size: 12px;
	}
	.huaxiang-box-bot-item{
		border-bottom:1px solid rgba(238,238,238,1);
	}
	.item-top{
		font-size: 17px;
		line-height: 30px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.item-bot{
		display: flex;
		flex-direction: row;
		color: #999;
		font-size: 12px;
		line-height: 20px;
		margin-bottom: 10px;
	}
	.item-bot view{
		margin-right: 10px;
	}
	.fangke-box{
		padding: 0 30upx;
	}
	.fangke-box-item{
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		height: 74px;
		border-bottom: 1px solid rgba(238,238,238,1);
	}
	.fangke-right{
		flex: 1;
	}
	.fangke-imgae{
		height: 40px;
		width: 40px;
		margin-right: 10px;
	}
	.fangke-right-top{
		display: flex;
		flex-direction: row;
		justify-content: space-between;
	}
	.fangke-name{
		color: #333;
		font-size: 16px;
		font-weight:bold;
		line-height: 24px;
	}
	.fangke-time{
		color:rgba(153,153,153,1);
		font-size: 11px;
	}
	.fangke-right-bot{
		color:#999999 ;
		line-height: 24px;
	}
	.fangwen{
		color: #C49C5A;
		font-size:14px;
		margin-left:5px ;
	}
	
	/* 留言 */
	.contentMid {
		background: rgb(255,255,255);
		padding:0 30upx ;
		border-bottom: 1px solid rgba(238, 238, 238, 1);
	
	}
	
	.mark,
	.mark-top-left,
	.mark-right .mark-top {
		display: flex;
		flex-direction: row;
	
	}
	
	.mark {
		
		padding:30upx 0 37upx;
		border-bottom: 1px solid rgba(238, 238, 238, 1);
	}
	
	.mark-top-left,
	.mark-right .mark-top {
		align-items: center;
		justify-content: space-between;
	}
	
	.mark-top-left {
		font-weight: bold;
		color: rgba(51, 51, 51, 1);
		line-height: 22px;
		font-size: 16px;
	}
	
	.avator-left,
	.avator-left image {
		height: 40px;
		width: 40px;
		border-radius: 50%;
	
	}
	
	.mark-right {
		margin-left: 19upx;
	}
	
	.position {
		margin-right: 10upx;
	}
	
	.mark-bot {
	
		font-size: 14px;
		font-weight: 500;
		color: rgba(51, 51, 51, 1);
		line-height: 21px;
		margin-top: 7px;
	}
	
	.mark-right .time {
		font-size: 12px;
	
		font-weight: 500;
		color: rgba(153, 153, 153, 1);
	}
	
	.more-mark {
		text-align: center;
		font-weight: 500;
		color: rgba(196, 156, 90, 1);
		line-height: 41px;
	}
	
	
	
	.bottom {
		width: 100%;
		position: fixed;
		bottom: 0;
	}
	
	.bottom-tab {
		display: flex;
		flex-direction: row;
		justify-content: space-around;
		text-align: center;
		background: rgb(255, 255, 255);
	}
	
	.bottom-item {}
	
	.bottom-icon-image {
		margin-top: 15upx;
		height: 20px;
		width: 20px;
	}
	
	.bottom-text {
		color: rgba(153, 153, 153, 1);
		line-height: 20px;
		font-size: 9px;
	}
	
	
	
	.label .label-item {
		height: 30px;
		background: rgba(245, 245, 245, 1);
		border-radius: 15px;
		line-height: 30px;
		padding: 0 32upx;
		margin: 0 10upx 10upx 0;
		font-size: 12px;
	}
	.mark-images {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		margin-top:13px;
	}	
	
	.mark-image {
		height: 80px;
		width: 80px;
		margin:0 10upx 10upx 0;
	}
	
	.mark-liuyan{
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		height: 30px;
	}
	
	.liuyan{
		height: 14px;
		width: 19px;
	}
	.liuyan-time{
		color:rgba(153,153,153,1);
	}
	.mark-liuyan-bot{
		background: rgba(249,249,249,1);
		line-height: 27px;
		font-size: 14px;
		color: #576B95;
	}
	.icon{
		margin: 0 5px;
		font-size: 14px;
	}
</style>
